package com.ttg.web.dao;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ttg.common.entities.BasePage;
import com.ttg.model.dto.QMReportDTO;
import com.ttg.model.pojo.QualityManageMerchReport;
import com.ttg.model.vo.QMMerchReportVO;

import java.util.List;

/**
 * (TblQualityManageMerchReport) dao
 *
 * @author chenyou
 * @datetime 2025-08-18 14:50:36
 */
public interface QualityManageMerchReportDao extends IService<QualityManageMerchReport>{

    QualityManageMerchReport getByUnique(String year,String month,String mctNo);

    List<String> getMctNoList(String year,String month);

    boolean deleteByMonth(String year,String month);

    void deleteByMonthAndMctNos(String year,String month,List<String> mctNos);

    void efficientBatchSaveOrUpdate(List<QualityManageMerchReport> list);

    BasePage<QMMerchReportVO> report(BasePage page, QMReportDTO reqDto);

    List<String> selectYears();

    List<String> selectMonths(String year);

}

